using Newtonsoft.Json;

namespace Betfair.Api
{
    internal sealed class BetfairRequest
    {
        public BetfairRequest(string method, Params @params, int id)
        {
            JsonRpc = "2.0";
            Method = string.Concat("SportsAPING/v1.0/", method);
            Params = @params;
            Id = id;
        }

        [JsonProperty("jsonrpc")]
        public string JsonRpc { get; private set; }

        [JsonProperty("method")]
        public string Method { get; private set; }

        [JsonProperty("params")]
        public Params Params { get; private set; }

        [JsonProperty("id")]
        public int Id { get; private set; }
    }
}